<template>
    <div>
        <!-- <UpAll></UpAll> -->

        <div class="header">
            <HomeNav :index="'1'"></HomeNav>
        </div>
        <TwoTitle></TwoTitle>
        <router-view></router-view>
    </div>

</template>

<script>
import HomeNav from "../components/Home/HomeNav.vue";
export default {
    components: { HomeNav },

    data() {
        return {
            // list: [],
        };
    },
    // async created() {
    //     let list = await this.$API.HomeAPI.GetTypeOne();
    //     this.list = list;
    //     console.log(this.list);
    // },
    beforeRouteEnter(to, from, next) {
        // alert('首页')
        next((vm) => {
            vm.$store.commit("SET_isOneTitle", "");
        });
    },
};
</script>

<style lang="scss" scoped>
.header {
    width: 100%;
}
</style>